<?php
	/* configuration center detail parameter
	 * 
	 * by Breezeer @2020.10.31
	 *
	 *
	 */

	 /* 配置中心以键值对返回数据 [配置中心默认形式不能删除]
	  *
	  *
	  *
	  *
	  *
	  */
	 $g_configuration_center_detail_parameter													= new stdClass(); 

	 /* 配置形式 1	=> 键值对
	  *
	  */
	 $g_configuration_center_detail_parameter->version											= '1.0';

	 /* 配置形式 2	=> 关联数组
	  *
	  */
	$g_configuration_center_detail_parameter->array_key_value									= [
																										'test_configuration_a'	=> 1000,
																										'test_configuration_c'	=> 1002,
																								  ];
	 /* 配置形式 3	=> 类的 const
	  *
	  */
	 $g_configuration_center_detail_parameter->object_ex										= function()
	 {
		 return (	new class	()
					{
									public const AC_A		= '1000'				;
									public const AC_B		= '1001'				;
									public const AC_C		= '1001'				;
					}
				);
	 };

	 /* mysql connection string configuration
	  *
	  */
	 $g_configuration_center_detail_parameter->mysql_connection_string_configuration			= function()
	 {
		 return (	new class	()
					{
									public const host		= '139.155.96.176'		;
									public const port		= '3306'				;
									public const database	= 'mediation_center'		;
									public const username	= 'mediation_center'		;
									public const password	= 'MYSbnnHfERfA8jxZ'	;

//                                    public const host		= '140.210.216.97'		;
//									public const port		= '31306'				;
//									public const database	= 'mediation_center'		;
//									public const username	= 'KhCCe2kFaDncKa3B'		;
//									public const password	= 'wm7XXwNymp7sw7yE'	;
					}
				);
	 };

	 /* redis connection string configuration
	  *
	  */
	 $g_configuration_center_detail_parameter->redis_connection_string_configuration			= function()
	 {
		 return (	new class	()
					{
									public const host		= '127.0.0.1'			;
									public const port		= '6379'				;
									public const username	= ''					;
									public const password	= 'qw$!@*dak'			;
					}
				);
	 };

	/* 丁丁审批表单的 process id 定义
	 *
	 */
    $g_configuration_center_detail_parameter->dingdingProcessCode								= function()
    {
        return	(	new class	()
					{
									// 合同法务审批
									const CONTRACT_APPROVAL_FW_CODE								= 'PROC-93CC4EB8-4D06-440C-9481-24B46A312214';
									// 合同审批code
									const CONTRACT_APPROVAL_CODE								= 'PROC-6F82F625-A639-4D53-AFC1-8C82F2B15160';
									// 客户 -> 信用客户审批
									const CLIENT_APPROVAL_CODE									= "PROC-DD0D67BF-3BE0-4425-A34F-C6AE778831CD";

									# 信用项目丁丁审批表单 => by breezeer @ 2022.10.25
									#
									#
									const CREDIT_PROJECT_DING_DING_APPROVAL_CODE				= 'PROC-B2D8BAE7-4148-449E-9D3A-874103C0AF98';	# 信用项目审查
									const CREDIT_PROJECT_ADJUST_QUOTA_DING_DING_APPROVAL_CODE	= 'PROC-436FD53F-90A5-43A2-8666-6140207E7AFD';	# 信用项目审批已批准赊销项目额度的调增调减审查

					}
				);
    };

    $g_configuration_center_detail_parameter->node_config										= function() 
	{
        return	(	new class		()
					{
									const NODE_WORD_TO_PDF										= "/node/docgen/";
					}
				);
    };

    $g_configuration_center_detail_parameter->system_config										= function()
    {
        return	(	new class		()
                    {
                        const ADMIN_LOGIN_AES_KEY  =  '10caec97d704e15754736dae022b941c';
                        const HTTP_BASE_URL										= "http://127.0.0.1";
                        const HTTPS_BASE_URL										= "https://127.0.0.1";
                        const LATTER_REDIRECT_URL										= "https://law.cyhzsoft.com/";
                    }
        );
    };


    // uf 话务系统配置
    $g_configuration_center_detail_parameter->uSails_config										= function()
    {
        return	(	new class		()
        {
            const USAILS_URL								= "https://api.sip.aicxsx.com/open/";
            const USAILS_APP_ID									= "kMbWMibBQMFBuh";
            const USAILS_APP_KEY									= "UZfn8pksm5N8w7^xN5vR";
        }
        );
    };

    // 华为系统配置
    $g_configuration_center_detail_parameter->hua_wei										= function()
    {
        return	(	new class		()
        {

            const OBS_ACCESS_KEY							= "ZZ9AGRW9DVVKGBPHSA9L";
            const OBS_SECRET_ACCESS_KEY								= "tW8g2eLQlqUHfQQGVOrmIj3eSCFwbX3PIZA4jBcn";
            const OBS_TONG_URL							= "zmsf-records.obs.cn-southwest-2.myhuaweicloud.com";
        }
        );
    };


    // qxwg 企信网关话务系统配置
    $g_configuration_center_detail_parameter->qxwg_config										= function()
    {
        return	(	new class		()
        {
            # 接入方式
            const QXWG_INPUT_TYPE								 = "CMPP2.0";
            # 服务器地址
            const QXWG_IP									     = "103.131.169.89";
            # 服务器端口
            const QXWG_PORT									     = "7862";
            # 账号
            const QXWG_KEY								         = "700009";
            # 接口密码
            const QXWG_SECRET									 = "j4hNkfIO1Bkxxc";
            # 虚拟接入码
            const QXWG_XNJRM                                     = "106900";
            # AESkey
            const QXWG_AES_KEY                                    = "cJyvQwSUJnPooGF7qKeOqM1JhjLypQOmVbjwwwvDt8k1eJjOt2LncHz4hjFAjVXoLuK3XyffSK8FIeY6HhUmuV2eDClN3FsqqvtiC8jSTFKytgt1hAJI6fBDb1BCnxEpOWsSuwbplc4wpoJnAtehKO8CFAVWxXh1GSyfqTzXUfbG1Jur0b749V56qix5PHHgG73sdrmerqS2V46A5xTckMT0tAINmV0XedNBWlerdA7oIda4j4vm1Not";
            }
        );
    };





    $g_configuration_center_detail_parameter->dingTalkConfig									= function()
	{
       return (		new class		()
					{
									// 钉钉应用ID 这里用的是品帛的钉钉
									const DING_TALK_AGENT_ID = 1022826775;
									// 钉钉应用 APP_KEY
									const DING_TALK_APP_KEY = "dingfnxp1sqkd8fclhix";
									// 钉钉应用 AppSecret
									const DING_TALK_APP_SECRET = "MhLUhwoiMyAq7ZSuePGJ3n90TxTWsSvHuT70PEI0rXJZpEAX4kqknWz4TcDWR6JP";
									// 钉钉登录回调配置
									// 钉钉回调URL
									const DING_CALL_BACK_TALK_URL = 'http://be.scjc168.cn:49003/index.php/api/triggerDingTalkRollBackEvent';
									// 钉钉回调 AppID
									const DING_TALK_LOGIN_APP_ID = 'dingoai3kwqr2ewlrx7nxi';
									// 钉钉回调 AppSecret
									const DING_TALK_LOGIN_APP_SECRET = 'SyyXPSHCybJxALD-EIhEw83BVWdZ0m_4yiM8MBlHqEfaJrktgv1Hgowd9dg2Tvfb';
									// 钉钉上传文件文件夹配置
									const SAVE_FILE_NAME = '全员文件夹';
									// 钉钉CorpId
									const DING_TALK_CORP_ID = 'dingzce0fdebfd8fcee0cacaaalh37764f94726';
									// 钉钉事件订阅Token
									const DINT_TALK_EVENT_TOKEN = '0DUnm6c5MkHP6OHIo5xosqi45VowLNmRwTnPW4AxtLDH6cIt6';
									// 钉钉事件订阅 AES
									const DINT_TALK_EVENT_ENCODING_AES_KEY = 'O98IixCoQfLKnT9hzrPD0NmQOEQMQPsU30LK01KEpxJ';
					}
            );
	};
